package mybatis.mybatisMapper;

import mybatis.pojo.Emp;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;

public interface EmpMapper {
    Emp selectEmpInfoByEmpno(int empno);
    List<Emp> selectAll();
    int addEmpInfo(Emp emp);
    int delEmpInfo(int empno) throws IOException;
    int updateEmpEname(HashMap<String,Object> map) throws IOException;
    List<HashMap<String,Object>> selectEmpByED(@Param("ename") String ename,@Param("deptno") int deptno);
}
